package mfuny.ggongal.admin;

import mfuny.ggongal.admin.winner.WinnerService;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class WinnerController {
	WinnerService win;
	
	public WinnerController() throws Exception {
		win = new WinnerService();
	}
	
	@RequestMapping("/winnerResult.ga")
	public ModelAndView winnerResult() throws Exception {
		return win.winnerResult();
	}
	
	@RequestMapping("/winnerResult_detail.ga")
	public ModelAndView winnerResult_detail(int ad_no) throws Exception {
		return win.winnerResult_detail(ad_no);
	}
	
	@RequestMapping("/winnerListPopup.ga")
	public ModelAndView winnerListPopup(int ad_no, String days) throws Exception {
		return win.winnerListPopup(ad_no, days);
	}
}
